package com.fy.service.impl;

import com.fy.mapper.MessageMapper;
import com.fy.pojo.Message;
import com.fy.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class MessageServiceImpl implements MessageService {
    @Autowired
    MessageMapper messageMapper;

    @Transactional(readOnly = true)
    @Override
    public List<Message> list() {
        return messageMapper.list();
    }
}
